package com.chenxin.dubbo.controller;

import com.chenxin.dubbo.entity.HrmUser;
import com.chenxin.dubbo.service.HrmService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class HrmController {

    @Reference
    private HrmService hrmService;

    @RequestMapping("getHrmUser")
    public List<HrmUser> get(){
        return hrmService.getHrmUser(new HrmUser(1111, "ssss"));
    }
}
